<?php
namespace app\tools\controller;
use app\tools\logic\ApiLogic;
use app\tools\logic\ChannelKeyLogic;

class ChannelKey extends Base{
	//获取列表
	function getList(){
		$data = ChannelKeyLogic::getList();
		return ApiLogic::return(0,'',$data);
	}
	//获取详情
	function getInfo(){
		$info = ChannelKeyLogic::getInfo();
		return ApiLogic::return(0,'',$info);
	}
	//保存
	function save(){
		$rs = ChannelKeyLogic::save();
		if($rs){
			return ApiLogic::return($rs);
		}else{
			return ApiLogic::return(0);
		}
	}
	//新增
	function add(){
		$rs = ChannelKeyLogic::add();
		if($rs){
			return ApiLogic::return($rs);
		}else{
			return ApiLogic::return(0);
		}
	}

	//删除
	function delete(){
		$rs = ChannelKeyLogic::delete();
		if($rs){
			return ApiLogic::return($rs);
		}else{
			return ApiLogic::return(0);
		}
	}

}
